import axios from "axios";
const BASE = "https://m.lanqb.com/api/";
export default async function ajax(url, method, params) {
  const data = await axios({
    url: BASE + url,
    method,
    data: params,
    // headers: {
    //   Authorization: JSON.parse(localStorage.getItem("userinfo")).token,
    // },
  }).then(({data})=>data);
  return data;
}
